<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html>
<html lang="zh-CN">
    <head>
        <meta charset="UTF-8">
        <title>研究博客 | <?php echo ($site_name_cn); ?>安全应急响应中心</title>
        <meta http-equiv="X-UA-Compatible" content="IE=Edge,chrome=1">
        <meta name="description" content="<?php echo ($site_name_cn); ?>安全应急响应中心,<?php echo ($site_name_en); ?> Security Response Center">
        <meta name="keywords" content="<?php echo ($site_name_cn); ?>,<?php echo ($site_name_en); ?>,安全团队,应急响应,<?php echo ($site_name_cn); ?>安全应急响应中心,<?php echo ($site_name_en); ?> Security Response Center">
        <meta name="renderer" content="webkit">
        <meta name="viewport" content="width=device-width, initial-scale=0.5, maximum-scale=0.5, minimum-scale=0.5, user-scalable=no">
        <link rel="icon" href="/Public/Index/images/logo.ico">
        <link rel="stylesheet" href="/Public/Index/css/main.css">
        <!--[if (gte IE 6)&(lte IE 8)]>
        兼容 CSS3 选择器
        <script type="text/javascript" src="/Public/Index/js/selectivizr.min.js"></script>
        兼容 media query
        <script type="text/javascript" src="/Public/Index/js/respond.min.js"></script>
        <![endif]-->
    </head>
    <body>
        <div class="header">
            <div>
                <div class="logo">
                    <a href="">
                        <div class="logo_pic">
                        </div>
                        <div class="logo_name">
                            <p><?php echo ($site_name_cn); ?>安全应急响应中心</p>
                            <p><?php echo ($site_name_en); ?> Security Response Center</p>
                        </div>
                    </a>
                </div>

                <div class="userpanel">
                    <div class="userpanel_line">
                        <div></div>
                    </div>
					<?php if(empty($username)): ?><div class="userpanel_login" style="display:block">
                        <a class="mod-btn mod-btn-black login-btn-1 login-qq" href="/user.php?m=user&c=post&a=add">登录账户</a>
                    </div>
					<?php else: ?> 
                    <div class="userpanel_user">
                        <img class="user_avatar mod-avatar-30" src="/Public/Uploads/<?php echo session('avatar');?>" alt="">
                        <span class="user_username"><?php echo session('username'); if(session('mnum') == 0): else: ?><i class="i-header-message"><?php echo session('mnum');?></i><?php endif; ?></span>
                        <i class="user_arrow"></i>
                        <div class="user_menu">
                            <ul class="menu_list">
                                <li class="list_item list_item-user">
                                    <a href="/user.php">
                                        <i class="item_icon"></i>
                                        <span class="item_text">个人主页</span>
                                    </a>
                                </li>
                                <li class="list_item list_item-message">
                                    <a href="/user.php?m=user&c=message&a=index">
                                        <i class="item_icon"></i>
                                        <span class="item_text">消息中心</span>
                                        <i class="item_icon-message"><?php echo session('mnum');?></i>
                                    </a>
                                </li>
                                <li class="list_item list_item-account">
                                    <a href="/user.php?m=user&c=info&a=index">
                                        <i class="item_icon"></i>
                                        <span class="item_text">账户设置</span>
                                    </a>
                                </li>
                                <li class="list_item list_item-logout">
                                    <a href="<?php echo U('login/logout');?>">
                                        <i class="item_icon"></i>
                                        <span class="item_text">注销</span>
                                    </a>
                                </li>
                            </ul>
                        </div>
                    </div><?php endif; ?>
				</div>

                <div class="nav">
                    <ul>
                        <li class="[index_banner]"><a href="<?php echo U('index/index');?>">首页</a></li>
                        <li class="[banner_selected]"><a href="/user.php?m=user&c=post&a=add">提交漏洞</a></li>
                        <li class="[annoucment_banner]"><a href="<?php echo U('page/index');?>">公告</a></li>
						<li class="nav_item-active"><a href="<?php echo U('blog/index');?>">博客</a></li>
						<li class="[hall_banner]"><a href="<?php echo U('hall/index');?>">贡献榜</a></li>
                        <li class="[gift_banner]"><a href="<?php echo U('gift/index');?>">礼品兑换</a></li>
                    </ul>
                </div>
            </div>
        </div>
   <div class="container container-blog">
            <div>
                <!-- section-subnav 标题-->
                <div class="section section-subnav">
                    <div class="section_subnav">
                        <p class="subnav_title"><a href="#">博客</a></p>
                        <div class="subnav_bgtext"></div>
                    </div>
                </div>

                <div class="section section-blog">
                    <div class="section_blog">
                        <div class="blog_content">
                            <div class="content_sort">
                                <ul>
									<?php if($type_val != ''): ?><li class="sort_item"><a href="<?php echo U('blog/index');?>">全部</a></li>
									<?php else: ?>
										<li class="sort_item sort_item-active"><a href="<?php echo U('blog/index');?>">全部</a></li><?php endif; ?>
									
									<?php if(is_array($cates)): foreach($cates as $key=>$c): ?><li class="sort_item <?php if($type_val == $c['name']): ?>sort_item-active<?php endif; ?>"><a href="<?php echo U('blog/index?type='); echo ($c["name"]); ?>"><?php echo ($c["name"]); ?></a></li><?php endforeach; endif; ?>	
                                </ul>
                            </div>

                            <div class="content_list">
                                <ul class="mod-itemlist-article">
								<?php if(is_array($model)): foreach($model as $key=>$v): ?><li class="itemlist_item">
                                        <div class="item_pic">
                                            <a href="<?php echo U('blog/view?id='); echo ($v["id"]); ?>" target="_blank">
                                                <img src="<?php echo ($v["picture"]); ?>" alt="">
                                            </a>
                                        </div>
                                        <div class="item_content">
                                            <div class="content_title">
                                                <a href="<?php echo U('blog/view?id='); echo ($v["id"]); ?>" target="_blank"><?php echo ($v["title"]); ?></a>
                                            </div>
                                            <div class="content_info">
                                                <span class="info_author"><?php echo ($v["author"]); ?></span>
                                                <span class="info_date">
                                                    <span><?php echo (date("Y/m/d",$v["update_time"])); ?></span>
                                                </span>
                                                <!--<span class="info_watched">
                                                    <i></i>
                                                    <span>9816</span>
                                                </span>
                                                <span class="info_comment">
                                                    <i></i>
                                                    <span>89</span>
                                                </span>-->
                                            </div>
                                            <div class="content_brief">
                                                <p><?php echo ($v["abstract"]); ?></p>
                                            </div>
                                            <div class="content_readmore">
                                                <a href="<?php echo U('blog/view?id='); echo ($v["id"]); ?>" target="_blank">阅读全文</a>
                                            </div>
                                        </div>
                                    </li><?php endforeach; endif; ?>	
                                </ul>
                            </div>

                            <div class="mod-pageflip">
                                <?php echo ($page); ?>
                            </div>
                        </div>

                        <div class="blog_sidebarcontainer">
                            <div class="sidebarcontainer_sidebar">
                                <div class="sidebar_title">
                                    <p>精彩博文</p>
                                </div>
                                <ul class="sidebar_list">
								<?php if(is_array($recommend)): foreach($recommend as $key=>$r): ?><li class="list_item">
                                        <a href="<?php echo U('blog/view?id='); echo ($v["id"]); ?>" target="_blank">
                                            <i><?php echo ($key+1); ?></i><span><?php echo ($r["title"]); ?></span>
                                        </a>
                                    </li><?php endforeach; endif; ?>
                                </ul>
                            </div>

                            <!--<div class="mod-rss">
                                <a class="mod-btn mod-btn-black" href=""><i class="i-rss"></i>RSS订阅</a>
                            </div>-->
                        </div>
                    </div>
                </div>

            </div>
	</div>
 <!-- footer -->
        <div class="footer" style="bottom:0px;left:0px;">
            <div>
                <div class="footer_about">
                    <p class="about_link">
                        <a href="<?php echo ($site_about); ?>" target="_blank">关于<?php echo ($site_name_cn); ?></a>
                        |
                        <a href="<?php echo ($site_career); ?>">加入我们</a>
                        |
                        <a href="/user.php?m=user&c=post&a=add">报告漏洞</a>
                    </p>
                    <p class="about_copyright">
                        <span>Copyright &copy; <?php echo date('Y'); ?> <?php echo ($site_copyright); ?>. All Rights Reserved</span>
						<span>Powered by <a href="https://security.tencent.com/index.php/xsrc">Tencent xSRC</a></span>
                    </p>
                </div>

                <div class="footer_contact">
                    <a class="contact_icon-email" href="mailto:<?php echo ($site_email); ?>"><i></i><span>专用邮箱</span>|</a>
                    <a class="contact_icon-weixin mod-qrcode" href="">
                        <i></i><span>微信公众号</span>
                        <div class="qrcode">
                            <div class="qrcode_pic">
                                <img src="<?php echo ($site_wechat); ?>" alt="">
                            </div>
                            <span class="qrcode_text">扫一扫关注公众号</span>
                        </div>
                    </a>
                </div>
            </div>
        </div>

        <script src="/Public/Index/js/jquery-1.7.2.min.js"></script>
        <script src="/Public/Index/js/test.js"></script>
		<!--xSRC首页统计，正式运营可删除-->
		<script>
		   var _mtac = {};
		   (function() {
			   var mta = document.createElement("script");
			   mta.src = "//pingjs.qq.com/h5/stats.js?v2.0.4";
			   mta.setAttribute("name", "MTAH5");
			   mta.setAttribute("sid", "500696164");
			   var s = document.getElementsByTagName("script")[0];
			   s.parentNode.insertBefore(mta, s);
			})();
		</script>
		
		<?php echo (htmlspecialchars_decode($site_analytics)); ?>
		
    </body>
</html>